package com.sz.web.account.entity;

import com.sz.web.common.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 账户
 */


@Table(name = "account_user")
public class AccountUser extends BaseEntity {
    private static final long serialVersionUID = 1495888017797429767L;
    /**
     * 账户名
     */
    private String account = "";
    /**
     * 密码
     */
    private String password = "";
    /**
     * 昵称
     */
    private String username = "";
    /**
     * 邮箱
     */
    private String email = "";
    /**
     * 手机
     */
    private String mobilePhone = "";
    @Transient
    private String code;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getCode() {
        return code;
    }
    public void setCode(String code) {
        this.code = code;
    }

    @Override
    public String toString() {
        return "AccountUser{" +
                "account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", username='" + username + '\'' +
                ", email='" + email + '\'' +
                ", mobilePhone='" + mobilePhone + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}
